/**
 * 版权所有 2009-2015 中国中医科学院中医药信息研究所 何前锋 frontpeak@yahoo.com.cn
 **/
package cn.ac.cintcm.sh.domain;

public class PresHerb {
    private int id;
    private int pid;
    private float dosage;
    private String odosage;
    private String unit;
    public float getDosage() {
        return dosage;
    }
    public void setDosage(float dosage) {
        this.dosage = dosage;
    }
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getOdosage() {
        return odosage;
    }
    public void setOdosage(String odosage) {
        this.odosage = odosage;
    }
    public int getPid() {
        return pid;
    }
    public void setPid(int pid) {
        this.pid = pid;
    }
    public String getUnit() {
        return unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
    }
    public String getInsertStr() {
        StringBuffer sb = new StringBuffer();
        sb.append(id);
        sb.append(",");
        sb.append(pid);
        sb.append(",");
        sb.append(dosage);
        sb.append(",");
        sb.append("'");
        sb.append(odosage);
        sb.append("'");
        sb.append(",");
        sb.append("'");
        sb.append(unit==null?"":unit);
        sb.append("'");
        return sb.toString();
    }

}